import request from '@/utils/request'

// 创建混合云支撑-混合云客户授权License
export function createHbcClientAuthLicense(data) {
  return request({
    url: '/hbcsupport/hbc-client-auth-license/create',
    method: 'post',
    data: data
  })
}

// 更新混合云支撑-混合云客户授权License
export function updateHbcClientAuthLicense(data) {
  return request({
    url: '/hbcsupport/hbc-client-auth-license/update',
    method: 'post',
    data: data
  })
}

// 删除混合云支撑-混合云客户授权License
export function deleteHbcClientAuthLicense(id) {
  return request({
    url: '/hbcsupport/hbc-client-auth-license/delete?id=' + id,
    method: 'get'
  })
}

// 获得混合云支撑-混合云客户授权License
export function getHbcClientAuthLicense(id) {
  return request({
    url: '/hbcsupport/hbc-client-auth-license/get?id=' + id,
    method: 'get'
  })
}

// 获得混合云支撑-混合云客户授权License分页
export function getHbcClientAuthLicensePage(query) {
  return request({
    url: '/hbcsupport/hbc-client-auth-license/page',
    method: 'get',
    params: query
  })
}

// 导出混合云支撑-混合云客户授权License Excel
export function exportHbcClientAuthLicenseExcel(query) {
  return request({
    url: '/hbcsupport/hbc-client-auth-license/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 导出混合云支撑-混合云客户授权License 文件原文字段数据
export function downloadHbcClientAuthLicenseFileData(query) {
  return request({
    url: '/hbcsupport/hbc-client-auth-license/download-file-data',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
